package events.roadEvents;

import layers.physical.Crossroad;
import framework.events.Event;

public class CrossRoadsCreatedEvent extends Event {

	private Crossroad crossroad;

	public CrossRoadsCreatedEvent(Crossroad crossroad) {
		this.crossroad = crossroad;
	}

	public int getCrossroadId() {
		return this.crossroad.getId();
	}
	
	public Crossroad getCrossroad(){
		return this.crossroad;
	}
	
	@Override
	public String toString() {
		return "Crossroad " + crossroad.getId() + " was created";
	}
	
}